package day06;

import java.sql.SQLOutput;

public class Son extends Father{
    String name="飞飞飞";
    @Override
    public void haha(){
        System.out.println("嘿嘿");
    }
    public void getFather(){
        super.haha();
    }
    public static void main(String[] args) {

        Son son=new Son();

        son.getFather();
        son.haha();
//        System.out.println(son.getName());
    }
}
class Father{
    private  String name="飞飞";

    public String getName() {
        return name;
    }
public void haha(){
    System.out.print("water");
}
    public void setName(String name) {
        this.name = name;
    }
}

